package com.starlink.model.dtomapper;

import com.starlink.model.domain.FreeTemplateDO;
import com.starlink.model.request.FreeTemplateRequest;
import com.starlink.model.vo.FreeTemplateVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface FreeTemplateDtoMapper {

    FreeTemplateDtoMapper INSTANCE = Mappers.getMapper(FreeTemplateDtoMapper.class);

    /**
    * DO to VO
    * @param freeTemplateDO
    * @return
    */
    FreeTemplateVO do2VO(FreeTemplateDO freeTemplateDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    FreeTemplateDO request2DO(FreeTemplateRequest request);
}
